import Http from '../utils/request'

class CmsService extends Http{
    save=(params)=>{
        return this.post('/busiTypeArticle/update',params)
    }

    detail=(id)=>{
        return this.get(`/busiTypeArticle/detail/${id}`)
    }

    list=()=>{
        return this.get('/busiTypeArticle/list')
    }

    bind=(articleId,busiType)=>{
        return this.get(`/busiTypeArticle/bind/${articleId}/${busiType}`)
    }

    delete=(id)=>{
        return this.get(`/busiTypeArticle/delete/${id}`)
    }

    busiType=(busiTypeId)=>{
        return this.get(`/busiTypeArticle/busiType/${busiTypeId}`)
    }

}


export default new CmsService();